package com.lz.service.xjl.impl;

import com.lz.entity.InstallationPerson;
import com.lz.entity.TemporaryCarParts;
import com.lz.entity.UpholsteryType;
import com.lz.repository.xjl.InstallationPersonDao;
import com.lz.repository.xjl.UpholsteryTypeDao;
import com.lz.service.xjl.UpholsteryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 徐建林
 * @date 2018/10/26 11:12
 */
@Service
public class UpholsteryTypeServiceImpl implements UpholsteryTypeService {
    @Autowired
    private UpholsteryTypeDao upholsteryTypeDao;
    @Autowired
    private InstallationPersonDao installationPersonDao;

    @Override
    public List<UpholsteryType> getUpholsteryTypeList() {
        return upholsteryTypeDao.getUpholsteryTypeList();
    }

    @Override
    public List<InstallationPerson> getInstallationPersonList() {
        return installationPersonDao.getInstallationPersonList();
    }

    @Override
    public List<TemporaryCarParts> getTemporaryCarPartsList(Integer equipmentSheetNo) {
        return upholsteryTypeDao.getTemporaryCarPartsList(equipmentSheetNo);
    }

    @Override
    public Integer getMaxcustomerNo() {
        return upholsteryTypeDao.getMaxCustomerId();
    }
}
